Includes APIs supported by USB3 vision devices.
More...
Includes APIs supported by USB3 vision devices.
◆ MV_USB_SetTransferSize()
| def MvCameraControl_class.MV_USB_SetTransferSize |
( |
|
self, |
|
|
|
nTransferSize |
|
) |
| |
Sets transmission packet size of USB3 vision devices.
- Parameters
-
| handle | [IN] It refers to the device handle. |
| nTransferSize | [IN] It refers to the size of the transmission packet, unit: byte, default value: 1 MB (1,048,576 bytes). In Linux operating system, range: [0x8000, 0x200000]. |
- Returns
- Returns MV_OK for success, and returns corresponding Error Code for failure.
◆ MV_USB_GetTransferSize()
| def MvCameraControl_class.MV_USB_GetTransferSize |
( |
|
self, |
|
|
|
pnTransferSize |
|
) |
| |
Gets transmission packet size of USB3 vision cameras.
- Parameters
-
| handle | [IN] It refers to the device handle. |
| pnTransferSize | [IN][OUT] It refers to the pointer to the size of the transmission packet, unit: byte. |
- Returns
- Returns MV_OK for success, and returns corresponding Error Code for failure.
◆ MV_USB_SetTransferWays()
| def MvCameraControl_class.MV_USB_SetTransferWays |
( |
|
self, |
|
|
|
nTransferWays |
|
) |
| |
Sets the number of transmission channels of USB3 vision devices.
- Parameters
-
| handle | [IN] It refers to the device handle. |
| nTransferWays | [IN] It refers to the number of transmission channels, range: [1, 10]. |
- Returns
- Returns MV_OK for success, and returns corresponding Error Code for failure.
◆ MV_USB_GetTransferWays()
| def MvCameraControl_class.MV_USB_GetTransferWays |
( |
|
self, |
|
|
|
pnTransferWays |
|
) |
| |
Gets the number of transmission channels of USB3 vision devices.
- Parameters
-
| handle | [IN] It refers to the device handle. |
| pnTransferWays | [IN][OUT] It refers to the pointer to the number of transmission channels. |
- Returns
- Returns MV_OK for success, and returns corresponding Error Code for failure.
◆ MV_USB_SetEventNodeNum()
| def MvCameraControl_class.MV_USB_SetEventNodeNum |
( |
|
self, |
|
|
|
nEventNodeNum |
|
) |
| |
Sets the number of event buffer nodes of USB3 vision devices.
- Parameters
-
| handle | [IN] It refers to the device handle. |
| nEventNodeNum | [IN] It refers to the number of event buffer nodes, range: [1, 64]. |
- Returns
- Returns MV_OK for success, and returns corresponding Error Code for failure.
◆ MV_USB_SetSyncTimeOut()
| def MvCameraControl_class.MV_USB_SetSyncTimeOut |
( |
|
self, |
|
|
|
nMills |
|
) |
| |
Sets the timeout duration for sync reading and writing of USB3 vision devices, range: [1000, UNIT_MAX].
- Parameters
-
| handle | [IN] It refers to the device handle. |
| nMills | [IN] It refers to the timeout duration for sync reading and writing, unit: millisecond. It is 1000 ms by default. |
- Returns
- Returns MV_OK for success, and returns corresponding Error Code for failure.
◆ MV_USB_GetSyncTimeOut()
| def MvCameraControl_class.MV_USB_GetSyncTimeOut |
( |
|
self, |
|
|
|
nMills |
|
) |
| |
Gets the timeout duration of sync reading and writing of USB3 vision devices.
- Parameters
-
| handle | [IN] It refers to the device handle. |
| pnMills | [IN][OUT] It refers to the timeout duration, unit: millisecond. |
- Returns
- Returns MV_OK for success, and returns corresponding Error Code for failure.